<?php

namespace Kunfeng\Dify\Model\Chat;

/**
 * 语音转文字响应模型
 */
class AudioToTextResponse
{
    private $text;

    public function __construct(array $data)
    {
        $this->text = $data['text'] ?? '';
    }

    /**
     * 从数组创建
     */
    public static function fromArray(array $data): self
    {
        return new self($data);
    }

    // Getters
    public function getText(): string
    {
        return $this->text;
    }
}
